PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


UnregisterAppearanceClient

Informs the Appearance Manager that your program is no longer its client.

pascal OSStatus UnregisterAppearanceClient (void);
function result
A result code. The result code appearanceProcessNotRegisteredErr indicates that your program was not registered when you called the UnregisterAppearanceClient function. For other possible result codes, see Result Codes .
DISCUSSION

The UnregisterAppearanceClient function is automatically called for you when your program terminates. While you do not typically need to call this function, you might want to call UnregisterAppearanceClient if you are running a plug-in architecture, and you know that a given plug-in is not theme-compliant. In this case you would bracket your use of the plug-in with calls to UnregisterAppearanceClient (before the plug-in is used) and RegisterAppearanceClient (after the plug-in is used), so that the Appearance Manager is turned off for the duration of the plug-in's usage.

VERSION NOTES

Available with Appearance Manager 1.0 and later.

SEE ALSO

The function RegisterAppearanceClient .


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)